<?php

namespace app\index\validate;

use think\Validate;

/**
 * Class Gallery
 * @package app\index\validate
 */
class Gallery extends Validate
{
    protected $rule = [
        'name|图库名称' => 'require',
        'summary|图库描述' => 'require'
    ];

    protected $scene = [
        // 创建
        'create' => [
            'name',
            'summary'
        ]
    ];
}
